package com.sam.im.heiqun.nets;


import com.sam.im.heiqun.app.App;
import com.yuyh.library.nets.BaseNet;

import okhttp3.Response;

/**
 * created by arvin on 16/12/7 13:44
 * email：1035407623@qq.com
 */
public class PGNets extends BaseNet<PGApi> {

    private static PGNets sInstance;

    private PGNets() {
    }

    public static PGNets getInstance() {
        if (sInstance == null) {
            sInstance = new PGNets();
        }
        return sInstance;
    }

    @Override
    protected Class<PGApi> getApiClazz() {
        return PGApi.class;
    }

    @Override
    protected String getBaseUrl() {
        return App.loginUrl;
    }

    @Override
    protected String getBaseUrlW() {
        return PGApi.getTextFanYi;
    }

    @Override
    protected String getBaseUrlP() {
        return PGApi.getPayPalUrl;
    }

    @Override
    protected String getBaseUrlWP() {
        return PGApi.getWchatPay;
    }

    @Override
    protected String getBaseUrlPP() {
        return PGApi.getURLPHP ;
    }

    @Override
    protected void dealResponse(Response response) {

    }
}
